﻿using HBase;
using hCommand;
using Persistence;
using System.Collections.Generic;

namespace Controller {
    public class WMS99999Task : ZtTask {
        protected IWCSServer wcsServer = WMSDalFactray.getDal<IWCSServer>();
        public WMS99999Task()
        {
            time = 2000;
        }

        public override bool excute() {
            List<CoreTaskParam> list = MyCache.getList<CoreTaskParam>();
            foreach (CoreTaskParam p in list) {
                if (p.type == (int)TaskParamType.组内移位) {
                    CoreTaskParam p2= wcsServer.getById<CoreTaskParam>(p.id);
                     
                    if (p2.status <= (int)CoreTaskParamStatus.执行结束) { 
                        WMSTransactionFacade.doContinue99999Engine(p.id);
                    } 

                }
            }
            return true;    
        }
    }
}
